package com.xueyi.rebar.delivery.domain.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xueyi.rebar.delivery.domain.po.RebarDistributionDeliveryOrderPo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 配送单 数据传输对象
 *
 * @author xueyi
 */
@TableName(value = "rebar_distribution_delivery_order", excludeProperty = {"sort"})
public class RebarDistributionDeliveryOrderDto extends RebarDistributionDeliveryOrderPo {

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deliveryOrderCode", getDeliveryOrderCode())
            .append("orderCode", getOrderCode())
            .append("workareaId", getWorkareaId())
            .append("distributorManageId", getDistributorManageId())
            .append("vehicleId", getVehicleId())
            .append("name", getName())
            .append("theoreticalWeight", getTheoreticalWeight())
            .append("realWeight", getRealWeight())
            .append("auditStatus", getAuditStatus())
            .append("status", getStatus())
            .append("leaveFactoryTime", getLeaveFactoryTime())
            .append("planArriveTime", getPlanArriveTime())
            .append("sourceAddress", getSourceAddress())
            .append("targetAddress", getTargetAddress())
            .append("adjustmanAndTelephone", getAdjustmanAndTelephone())
            .append("receivemanAndTelephone", getReceivemanAndTelephone())
            .append("materialStatus", getMaterialStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}